package com.softao.ming.gwt.internal.ui;

import com.softao.ming.gwt.core.runtime.client.Plugin;
import com.softao.ming.gwt.osgi.client.framework.IBundleContext;


/**
 * The activator class controls the plug-in life cycle
 */
public class JMingGwtUI extends Plugin {

	/** The plug-in ID */
	public static final String PLUGIN_ID = "com.softao.ming.gwt.ui";

	// The shared instance
	private static JMingGwtUI plugin;
	
	/**
	 * The constructor
	 */
	public JMingGwtUI() {
	}

	public void start(IBundleContext context) throws Exception {
		super.start(context);
		plugin = this;
	}

	public void stop(IBundleContext context) throws Exception {
		plugin = null;
		super.stop(context);
	}

	/**
	 * Returns the shared instance
	 *
	 * @return the shared instance
	 */
	public static JMingGwtUI getDefault() {
		return plugin;
	}

}
